Repository navigation
feat(asin): add Asin integration - #9833
josselinlbe wants to merge 2 commits into
Conversation
Add an Asin block for Amazon price data across 11 Amazon stores: - Search Amazon products with ASIN, price, rating and review count - Read every seller's offer for an ASIN from Amazon now, or get the last known offers without reading Amazon again - Get a product's price history with its lowest, highest and average price Outputs follow the documented OpenAPI schemas and were checked against live responses. Credentials are an Asin API key sent as a bearer token.
|
Someone is attempting to deploy a commit to the Sim Team on Vercel. A member of the Team first needs to authorize it. |
[Medium impact] The PR adds a new Amazon data workflow for users who configure Asin. The PR appears safe to merge, with a non-blocking correction to the advertised Prime information. Findings
SummaryAdds the Asin integration for Amazon product searches, live and saved offers, and price history.
Reviews (1) · Last reviewed commit: "feat(asin): add Asin integration" · Reviewed by Greptile |
| id: 'asin_read_offers', | ||
| name: 'Asin Read Offers', | ||
| description: | ||
| "Read every offer for an ASIN from Amazon now (uses a credit): seller, price, Prime and FBA, delivery, with Amazon's own price and the lowest new and used offers.", |
There was a problem hiding this comment.
asin_read_offers promises Prime information, but mapAsinOffer never returns it and the offer schema has no Prime field. Users and agents cannot check Prime eligibility from this output. Remove the Prime claim from the description and generated docs, or expose the field if the API provides it.
- Describe Read Offers without Prime, which the API does not return - Keep response mappers with a single caller in that tool's file - Document the AsinIcon export - Read the operation from the mapper context so agent tools coerce Days too
Summary
Adds a Asin integration: tools, block, icon and generated docs page. I work on Asin, so this PR comes from the Asin team.
Search an Amazon store, read every seller's offer for an ASIN with Amazon's own price and the lowest new and used offers, and get a product's price history with its lowest, highest and average price, across 11 Amazon marketplaces.
Operations:
asin_search_products): Search an Amazon store and get up to 60 results, sponsored ones included, with ASIN, title, price, rating and review count.asin_read_offers): Read every offer for an ASIN from Amazon now (uses a credit): seller, price, Prime and FBA, delivery, with Amazon's own price and the lowest new and used offers.asin_get_offers): Get the offers last read for an ASIN, cheapest first, with Amazon's own price and the lowest new and used offers, without reading Amazon again.asin_get_price_history): Get every price read for an ASIN over a period, oldest first, with its lowest, highest and average price.Credentials are an Asin API key on the block (
AuthMode.ApiKey), sent as a bearer token. Every tool is an externalToolConfig.requestagainst the Asin API.Product update (if relevant)
E-commerce and brand teams can watch Amazon prices and sellers, and agents can judge whether a price is a real deal. The block appears in the integrations catalog with 7 templates and grounded skills; the docs page is
apps/docs/content/docs/integrations/asin.mdx.Type of Change
Testing
requestandtransformResponseto confirm the mapped outputs; fields that the API documents as nullable are optional outputs.bun run lint,bun run type-check,bun run check:audits(all 62 audits),bun run apps/sim/scripts/check-block-registry.ts origin/staging,bun run apps/sim/scripts/check-canvas-sentences.ts --block=asin, and the existingblocksandtools/request-transportVitest suites all pass.Checklist
Screenshots/Videos